{% extends "library/base/base_site.html" %}
{% load static %}
{% load bootstrap %}
{% block title %} {{ title|default:"" }} {% endblock title %}
{% block content %}
<div class="x_title">
    <h2>
        {{ title|default:"" }}
    </h2>
    <ul class="nav navbar-right panel_toolbox">
        <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
        </li>
        <li>
            <a class="close-link"><i class="fa fa-close"></i></a>
        </li>
    </ul>
    <div class="clearfix"></div>
</div>
<div class="x_content">
    <form class="form-horizontal form-label-left"
          {% if form.submit_method == 'get'%}
                    method="get"
                {% else %}
                    method="post"
                {% endif %}>
    {% if form.submit_method != 'get'%}
        {% csrf_token %}
    {% endif %}
        {{ form|bootstrap_horizontal }}
        <div class="ln_solid"></div>
        <div class="form-group">
            <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                <button type="submit" class="btn btn-success">查询</button>
                {% if can_download %}
				<button type="submit" class="btn btn-success" onclick="$(this).parents('form').attr('action','download')">导出为excel表</button>
			 	{% endif %}
            </div>
      </div>
    </form>
</div>
{% endblock content %}